<template>
<view class="tab-title-1 flex flex-row justify-center align-center">
  <view class="icon-suf flex flex-row justify-center align-center">
    <slot name="suffix"></slot>
  </view>
  <view class="tab-title-content flex-grow-1">
    <slot></slot>
  </view>
</view>
</template>

<script setup lang="ts">
defineOptions({ name: 'TabTitle' });
</script>

<style scoped lang="scss">

.tab-title-1 {
  min-height: 112rpx;
  border-radius: 64rpx;
  background: linear-gradient(270deg, #99CBFA 0%, #0030F9 100%);
  color: #fff;
  box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.05);
  text-align: center;
  padding: 22rpx 0;
  box-sizing: border-box;
  position: relative;
}

.icon-suf {
  font-size: 64rpx;
  width: 64rpx;
  height: 64rpx;
  position: absolute;
  left: 20rpx;
}

.tab-title-content {
  padding: 0 80rpx;
}
</style>
